import request from '@/utils/request'

export function queryAgencySalaryPaymentPage(query) {
  return request({
    url: '/agencySalaryPaymentController/queryAgencySalaryPaymentPage',
    method: 'get',
    params: query
  })
}

export function queryAgencyIndexPage(query) {
  return request({
    url: '/agencySalaryPaymentController/queryAgencyIndexPage',
    method: 'get',
    params: query
  })
}
// 挂接指标规则
export function queryRuleIndexPageRule(data) {
  return request({
    url: '/agencySalaryPaymentController/queryRuleIndexPage',
    method: 'post',
    data
  })
}

export function getHookUpData(query) {
  return request({
    url: '/agencySalaryPaymentController/getHookUpData',
    method: 'get',
    params: query
  })
}
//查询是否存在冻结指标
export function getPaymentLock(query) {
  return request({
    url: '/agencySalaryPaymentController/getPaymentLock',
    method: 'get',
    params: query
  })
}

export function saveHookUpData(data) {
  return request({
    url: '/agencySalaryPaymentController/saveHookUpData',
    method: 'post',
    data
  })
}

export function saveRuleHookUpData(data) {
  return request({
    url: '/agencySalaryPaymentController/saveRuleHookUpData',
    method: 'post',
    data
  })
}
